package com.daniel.design.principles.demo2.after;

/**
 * @ClassName Square
 * @Description 正方形类
 * @Author Daniel
 * @Version V1.0.0
 */
public class Square implements Quadrilateral {
    private double side;

    @Override
    public double getLength() {
        return side;
    }

    @Override
    public double getWidth() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }
}
